package com.quan.xczs.rpc.api;

import com.quan.base.common.base.service.support.IService;
import com.quan.xczs.rpc.model.XczsGoodsOrder;

public interface XczsGoodsOrderService extends IService<XczsGoodsOrder, Integer> {
	
	/**
	 * 根据openid加载订单
	 * @param openId
	 * @return
	 */
	public XczsGoodsOrder getOrderByOpenid(String openId) ;
	
	/**
	 * 根据mobile加载订单
	 * @param mobile
	 * @return
	 */
	public XczsGoodsOrder getOrderByMobile(String mobile) ;
	
	/**
	 * 根据orderId加载订单
	 * @param orderId
	 * @return
	 */
	public XczsGoodsOrder getOrderByOrderId(String orderId) ;
	
	/**
	 * 根据微信支付订单号（微信商户订单号）
	 * @param outTradeNo
	 * @return
	 */
	public XczsGoodsOrder getOrderByOutTradeNo(String outTradeNo) ;
	
	/**
	 * 根据微信订单号（微信商户订单号）
	 * 微信生成的订单号，在支付通知中有返回
	 * @param outTradeNo
	 * @return
	 */
	public XczsGoodsOrder getOrderByTransactionId(String transactionId) ;

}
